<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libxlsxwriter: comments2.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libxlsxwriter
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">comments2.c</div>  </div>
</div><!--header-->
<div class="contents">
<table width="600">
<tr>
<td><a class="el" href="comments1_8c-example.html">&lt;&lt; comments1.c</a> </td><td align="right"><a class="el" href="hide_row_col_8c-example.html">hide_row_col.c &gt;&gt;</a>  </td></tr>
</table>
<p>Another example of adding cell comments to a worksheet. This example demonstrates most of the available comment formatting options.</p>
<div class="image">
<img src="comments2.png" alt=""/>
</div>
<div class="fragment"><div class="line"><span class="comment">/*</span></div>
<div class="line"><span class="comment"> * An example of writing cell comments to a worksheet using libxlsxwriter.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Each of the worksheets demonstrates different features of cell comments.</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> * Copyright 2014-2020, John McNamara, jmcnamara@cpan.org</span></div>
<div class="line"><span class="comment"> *</span></div>
<div class="line"><span class="comment"> */</span></div>
<div class="line"> </div>
<div class="line"><span class="preprocessor">#include &quot;xlsxwriter.h&quot;</span></div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main() {</div>
<div class="line"> </div>
<div class="line">    <a name="_a0"></a><a class="code" href="structlxw__workbook.html">lxw_workbook</a>  *workbook   = <a name="a1"></a><a class="code" href="workbook_8h.html#a1cf96608a23ee4eb0e8467c15240d00b">workbook_new</a>(<span class="stringliteral">&quot;comments2.xlsx&quot;</span>);</div>
<div class="line">    <a name="_a2"></a><a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet1 = <a name="a3"></a><a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line">    <a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet2 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line">    <a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet3 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line">    <a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet4 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line">    <a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet5 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line">    <a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet6 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line">    <a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet7 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line">    <a class="code" href="structlxw__worksheet.html">lxw_worksheet</a> *worksheet8 = <a class="code" href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a>(workbook, NULL);</div>
<div class="line"> </div>
<div class="line">    <a name="_a4"></a><a class="code" href="structlxw__format.html">lxw_format</a> *text_wrap = <a name="a5"></a><a class="code" href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a>(workbook);</div>
<div class="line">    <a name="a6"></a><a class="code" href="format_8h.html#a56d55dd9257d8f0645c62b296d2c196d">format_set_text_wrap</a>(text_wrap);</div>
<div class="line">    <a name="a7"></a><a class="code" href="format_8h.html#a189c83d1f21b01937f1f730720c33d13">format_set_align</a>(text_wrap, <a name="a8"></a><a class="code" href="format_8h.html#adeeb0d70c7c873422d642323e7e1ecf5a9c365c63356bb50e4d6db97f59526b17">LXW_ALIGN_VERTICAL_TOP</a>);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/*</span></div>
<div class="line"><span class="comment">     * Example 1. Demonstrates a simple cell comments without formatting.</span></div>
<div class="line"><span class="comment">     */</span></div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Set up some worksheet formatting. */</span></div>
<div class="line">    <a name="a9"></a><a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet1, 2, 2, 25, NULL);</div>
<div class="line">    <a name="a10"></a><a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet1, 2, 50, NULL);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a name="a11"></a><a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet1, <a name="a12"></a><a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;Hold the mouse over this cell to see the comment.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a name="a13"></a><a class="code" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a>(worksheet1, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>), <span class="stringliteral">&quot;This is a comment.&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/*</span></div>
<div class="line"><span class="comment">     * Example 2. Demonstrates visible and hidden comments.</span></div>
<div class="line"><span class="comment">     */</span></div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Set up some worksheet formatting. */</span></div>
<div class="line">    <a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet2, 2, 2, 25, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet2, 2, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet2, 2, 50, NULL);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet2, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment is visible.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Use an option to make the comment visible. */</span></div>
<div class="line">    <a name="_a14"></a><a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options2 = {.<a name="a15"></a><a class="code" href="structlxw__comment__options.html#a3a3399ada29d05d2e7702e881fbe3ccb">visible</a> = <a name="a16"></a><a class="code" href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a3d78b49cb38d25b6d5473a1c0112404d">LXW_COMMENT_DISPLAY_VISIBLE</a>};</div>
<div class="line">    <a name="a17"></a><a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet2, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>), <span class="stringliteral">&quot;Hello.&quot;</span>, &amp;options2);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet2, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment isn&#39;t visible until you pass &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;the mouse over it (the default).&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a>(worksheet2, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>), <span class="stringliteral">&quot;Hello.&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/*</span></div>
<div class="line"><span class="comment">     * Example 3. Demonstrates visible and hidden comments, set at the</span></div>
<div class="line"><span class="comment">     * worksheet level.</span></div>
<div class="line"><span class="comment">     */</span></div>
<div class="line">    <a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet3, 2, 2, 25, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet3, 2, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet3, 5, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet3, 8, 50, NULL);</div>
<div class="line"> </div>
<div class="line">    <span class="comment">/* Make all comments on the worksheet visible. */</span></div>
<div class="line">    <a name="a18"></a><a class="code" href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">worksheet_show_comments</a>(worksheet3);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet3, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment is visible, explicitly.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options3a = {.<a class="code" href="structlxw__comment__options.html#a3a3399ada29d05d2e7702e881fbe3ccb">visible</a> = <a class="code" href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a3d78b49cb38d25b6d5473a1c0112404d">LXW_COMMENT_DISPLAY_VISIBLE</a>};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet3, 2, 2, <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options3a);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet3, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment is also visible because &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;we used worksheet_show_comments().&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a>(worksheet3, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet3, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C9&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;However, we can still override it locally.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options3b = {.<a class="code" href="structlxw__comment__options.html#a3a3399ada29d05d2e7702e881fbe3ccb">visible</a> = <a name="a19"></a><a class="code" href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a3d229e4bc94662b4ed744abd40182728">LXW_COMMENT_DISPLAY_HIDDEN</a>};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet3, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C9&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options3b);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/*</span></div>
<div class="line"><span class="comment">     * Example 4. Demonstrates changes to the comment box dimensions.</span></div>
<div class="line"><span class="comment">     */</span></div>
<div class="line">    <a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet4, 2, 2, 25, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet4, 2, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet4, 5, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet4, 8, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet4, 15, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet4, 18, 50, NULL);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">worksheet_show_comments</a>(worksheet4);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet4, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment is default size.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet4, 2, 2, <span class="stringliteral">&quot;Hello&quot;</span>, NULL);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet4, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment is twice as wide.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options4a = {.<a name="a20"></a><a class="code" href="structlxw__comment__options.html#a6fe2a539fa5448c499fbbbef3215976c">x_scale</a> = 2.0};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet4, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options4a);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet4, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C9&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment is twice as high.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options4b = {.<a name="a21"></a><a class="code" href="structlxw__comment__options.html#aa5cdcb6a45356c37c44c9601117e64a0">y_scale</a> = 2.0};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet4, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C9&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options4b);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet4, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C16&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment is scaled in both directions.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options4c = {.<a class="code" href="structlxw__comment__options.html#a6fe2a539fa5448c499fbbbef3215976c">x_scale</a> = 1.2, .y_scale = 0.5};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet4, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C16&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options4c);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet4, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C19&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment has width and height specified in pixels.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options4d = {.<a name="a22"></a><a class="code" href="structlxw__comment__options.html#abc75ab267fe81d828844e6a619c7edef">width</a> = 200, .height = 50};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet4, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C19&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options4d);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/*</span></div>
<div class="line"><span class="comment">     * Example 5. Demonstrates changes to the cell comment position.</span></div>
<div class="line"><span class="comment">     */</span></div>
<div class="line">    <a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet5, 2, 2, 25, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet5, 2, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet5, 5, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet5, 8, 50, NULL);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">worksheet_show_comments</a>(worksheet5);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet5, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment is in the default position.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a>(worksheet5, 2, 2, <span class="stringliteral">&quot;Hello&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet5, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment has been moved to another cell.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options5a = {.<a name="a23"></a><a class="code" href="structlxw__comment__options.html#a1360f4a255e8c255b3759d44205de938">start_row</a> = 3, .start_col = 4};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet5, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options5a);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet5, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C9&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment has been shifted within its default cell.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options5b = {.<a name="a24"></a><a class="code" href="structlxw__comment__options.html#a85ea5b7a9deceb6b5dd9b1580b49b5a5">x_offset</a> = 30, .y_offset = 12};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet5, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C9&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options5b);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/*</span></div>
<div class="line"><span class="comment">     * Example 6. Demonstrates changes to the comment background color.</span></div>
<div class="line"><span class="comment">     */</span></div>
<div class="line">    <a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet6, 2, 2, 25, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet6, 2, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet6, 5, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet6, 8, 50, NULL);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">worksheet_show_comments</a>(worksheet6);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet6, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment has a different color.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options6a = {.<a name="a25"></a><a class="code" href="structlxw__comment__options.html#a89a37846d06f3d06efb1c7b6d7dd96e8">color</a> = <a name="a26"></a><a class="code" href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38bae0b5c39ced3b8c871974f0e4917e4871">LXW_COLOR_GREEN</a>};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet6, 2, 2, <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options6a);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet6, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment has the default color.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a>(worksheet6, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet6, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C9&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;This cell comment has a different color.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options6b = {.<a class="code" href="structlxw__comment__options.html#a89a37846d06f3d06efb1c7b6d7dd96e8">color</a> = 0xFF6600};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet6, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C9&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options6b);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/*</span></div>
<div class="line"><span class="comment">     * Example 7. Demonstrates how to set the cell comment author.</span></div>
<div class="line"><span class="comment">     */</span></div>
<div class="line">    <a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet7, 2, 2, 30, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet7, 2, 50, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet7, 5, 60, NULL);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet7, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;Move the mouse over this cell and you will see &#39;Cell C3 &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;commented by&#39; (blank) in the status bar at the bottom.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a>(worksheet7, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet7, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;Move the mouse over this cell and you will see &#39;Cell C6 &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;commented by libxlsxwriter&#39; in the status bar at the bottom.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="structlxw__comment__options.html">lxw_comment_options</a> options7a = {.<a name="a27"></a><a class="code" href="structlxw__comment__options.html#ac5b73a7c784616e582aba3f3f7ae56d9">author</a> = <span class="stringliteral">&quot;libxlsxwriter&quot;</span>};</div>
<div class="line">    <a class="code" href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a>(worksheet7, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>, &amp;options7a);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <span class="comment">/*</span></div>
<div class="line"><span class="comment">     * Example 8. Demonstrates the need to explicitly set the row height.</span></div>
<div class="line"><span class="comment">     */</span></div>
<div class="line">    <a class="code" href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a>(worksheet8, 2, 2, 25, NULL);</div>
<div class="line">    <a class="code" href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a>(worksheet8, 2, 80, NULL);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">worksheet_show_comments</a>(worksheet8);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet8, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;The height of this row has been adjusted explicitly using &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;worksheet_set_row(). The size of the comment box is &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;adjusted accordingly by libxlsxwriter&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a>(worksheet8, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C3&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>);</div>
<div class="line"> </div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a>(worksheet8, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>),</div>
<div class="line">                           <span class="stringliteral">&quot;The height of this row has been adjusted by Excel when the &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;file is opened due to the text wrap property being set. &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;Unfortunately this means that the height of the row is &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;unknown to libxlsxwriter at run time and thus the comment &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;box is stretched as well.\n\n&quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;Use worksheet_set_row() to specify the row height explicitly &quot;</span></div>
<div class="line">                           <span class="stringliteral">&quot;to avoid this problem.&quot;</span>,</div>
<div class="line">                           text_wrap);</div>
<div class="line"> </div>
<div class="line">    <a class="code" href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a>(worksheet8, <a class="code" href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a>(<span class="stringliteral">&quot;C6&quot;</span>), <span class="stringliteral">&quot;Hello&quot;</span>);</div>
<div class="line"> </div>
<div class="line">    <span class="keywordflow">return</span> <a name="a28"></a><a class="code" href="workbook_8h.html#ad9e7aeebc0fd43562db5bcd527b2ee5e">workbook_close</a>(workbook);</div>
<div class="line">}</div>
</div><!-- fragment --> </div><!-- contents -->
<div class="ttc" id="aworkbook_8h_html_ad9e7aeebc0fd43562db5bcd527b2ee5e"><div class="ttname"><a href="workbook_8h.html#ad9e7aeebc0fd43562db5bcd527b2ee5e">workbook_close</a></div><div class="ttdeci">lxw_error workbook_close(lxw_workbook *workbook)</div><div class="ttdoc">Close the Workbook object and write the XLSX file.</div></div>
<div class="ttc" id="aformat_8h_html_a56d55dd9257d8f0645c62b296d2c196d"><div class="ttname"><a href="format_8h.html#a56d55dd9257d8f0645c62b296d2c196d">format_set_text_wrap</a></div><div class="ttdeci">void format_set_text_wrap(lxw_format *format)</div><div class="ttdoc">Wrap text in a cell.</div></div>
<div class="ttc" id="aformat_8h_html_adeeb0d70c7c873422d642323e7e1ecf5a9c365c63356bb50e4d6db97f59526b17"><div class="ttname"><a href="format_8h.html#adeeb0d70c7c873422d642323e7e1ecf5a9c365c63356bb50e4d6db97f59526b17">LXW_ALIGN_VERTICAL_TOP</a></div><div class="ttdeci">@ LXW_ALIGN_VERTICAL_TOP</div><div class="ttdef"><b>Definition:</b> format.h:147</div></div>
<div class="ttc" id="astructlxw__comment__options_html_a3a3399ada29d05d2e7702e881fbe3ccb"><div class="ttname"><a href="structlxw__comment__options.html#a3a3399ada29d05d2e7702e881fbe3ccb">lxw_comment_options::visible</a></div><div class="ttdeci">uint8_t visible</div><div class="ttdef"><b>Definition:</b> worksheet.h:1369</div></div>
<div class="ttc" id="astructlxw__comment__options_html"><div class="ttname"><a href="structlxw__comment__options.html">lxw_comment_options</a></div><div class="ttdoc">Options for inserted comments.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1360</div></div>
<div class="ttc" id="aformat_8h_html_a189c83d1f21b01937f1f730720c33d13"><div class="ttname"><a href="format_8h.html#a189c83d1f21b01937f1f730720c33d13">format_set_align</a></div><div class="ttdeci">void format_set_align(lxw_format *format, uint8_t alignment)</div><div class="ttdoc">Set the alignment for data in the cell.</div></div>
<div class="ttc" id="aworkbook_8h_html_a1cf96608a23ee4eb0e8467c15240d00b"><div class="ttname"><a href="workbook_8h.html#a1cf96608a23ee4eb0e8467c15240d00b">workbook_new</a></div><div class="ttdeci">lxw_workbook * workbook_new(const char *filename)</div><div class="ttdoc">Create a new workbook object.</div></div>
<div class="ttc" id="astructlxw__comment__options_html_aa5cdcb6a45356c37c44c9601117e64a0"><div class="ttname"><a href="structlxw__comment__options.html#aa5cdcb6a45356c37c44c9601117e64a0">lxw_comment_options::y_scale</a></div><div class="ttdeci">double y_scale</div><div class="ttdef"><b>Definition:</b> worksheet.h:1394</div></div>
<div class="ttc" id="astructlxw__comment__options_html_a85ea5b7a9deceb6b5dd9b1580b49b5a5"><div class="ttname"><a href="structlxw__comment__options.html#a85ea5b7a9deceb6b5dd9b1580b49b5a5">lxw_comment_options::x_offset</a></div><div class="ttdeci">int32_t x_offset</div><div class="ttdef"><b>Definition:</b> worksheet.h:1427</div></div>
<div class="ttc" id="astructlxw__worksheet_html"><div class="ttname"><a href="structlxw__worksheet.html">lxw_worksheet</a></div><div class="ttdoc">Struct to represent an Excel worksheet.</div><div class="ttdef"><b>Definition:</b> worksheet.h:1603</div></div>
<div class="ttc" id="astructlxw__format_html"><div class="ttname"><a href="structlxw__format.html">lxw_format</a></div><div class="ttdoc">Struct to represent the formatting properties of an Excel format.</div><div class="ttdef"><b>Definition:</b> format.h:358</div></div>
<div class="ttc" id="astructlxw__comment__options_html_a6fe2a539fa5448c499fbbbef3215976c"><div class="ttname"><a href="structlxw__comment__options.html#a6fe2a539fa5448c499fbbbef3215976c">lxw_comment_options::x_scale</a></div><div class="ttdeci">double x_scale</div><div class="ttdef"><b>Definition:</b> worksheet.h:1390</div></div>
<div class="ttc" id="astructlxw__comment__options_html_ac5b73a7c784616e582aba3f3f7ae56d9"><div class="ttname"><a href="structlxw__comment__options.html#ac5b73a7c784616e582aba3f3f7ae56d9">lxw_comment_options::author</a></div><div class="ttdeci">char * author</div><div class="ttdef"><b>Definition:</b> worksheet.h:1376</div></div>
<div class="ttc" id="aworksheet_8h_html_aad352c6cf9a5359d4cda51839a91c7d2a3d78b49cb38d25b6d5473a1c0112404d"><div class="ttname"><a href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a3d78b49cb38d25b6d5473a1c0112404d">LXW_COMMENT_DISPLAY_VISIBLE</a></div><div class="ttdeci">@ LXW_COMMENT_DISPLAY_VISIBLE</div><div class="ttdef"><b>Definition:</b> worksheet.h:218</div></div>
<div class="ttc" id="astructlxw__comment__options_html_a1360f4a255e8c255b3759d44205de938"><div class="ttname"><a href="structlxw__comment__options.html#a1360f4a255e8c255b3759d44205de938">lxw_comment_options::start_row</a></div><div class="ttdeci">lxw_row_t start_row</div><div class="ttdef"><b>Definition:</b> worksheet.h:1418</div></div>
<div class="ttc" id="aworksheet_8h_html_aafb945c6f7f462e7c6eb24032ea4e61a"><div class="ttname"><a href="worksheet_8h.html#aafb945c6f7f462e7c6eb24032ea4e61a">worksheet_show_comments</a></div><div class="ttdeci">void worksheet_show_comments(lxw_worksheet *worksheet)</div><div class="ttdoc">Make all comments in the worksheet visible.</div></div>
<div class="ttc" id="aworksheet_8h_html_a158dadac385cd1007994e5478b7b2aa7"><div class="ttname"><a href="worksheet_8h.html#a158dadac385cd1007994e5478b7b2aa7">worksheet_write_comment_opt</a></div><div class="ttdeci">lxw_error worksheet_write_comment_opt(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *string, lxw_comment_options *options)</div><div class="ttdoc">Write a comment to a worksheet cell with options.</div></div>
<div class="ttc" id="aformat_8h_html_abeafc6e8222ba9fcfd4f2c2f4e9ea38bae0b5c39ced3b8c871974f0e4917e4871"><div class="ttname"><a href="format_8h.html#abeafc6e8222ba9fcfd4f2c2f4e9ea38bae0b5c39ced3b8c871974f0e4917e4871">LXW_COLOR_GREEN</a></div><div class="ttdeci">@ LXW_COLOR_GREEN</div><div class="ttdef"><b>Definition:</b> format.h:196</div></div>
<div class="ttc" id="astructlxw__workbook_html"><div class="ttname"><a href="structlxw__workbook.html">lxw_workbook</a></div><div class="ttdoc">Struct to represent an Excel workbook.</div><div class="ttdef"><b>Definition:</b> workbook.h:273</div></div>
<div class="ttc" id="aworksheet_8h_html_ac208046e7a6d12cc87982422efa41b31"><div class="ttname"><a href="worksheet_8h.html#ac208046e7a6d12cc87982422efa41b31">worksheet_write_string</a></div><div class="ttdeci">lxw_error worksheet_write_string(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *string, lxw_format *format)</div><div class="ttdoc">Write a string to a worksheet cell.</div></div>
<div class="ttc" id="aworksheet_8h_html_ab9b7fb95e1bd9b0da70befd0d37a9173"><div class="ttname"><a href="worksheet_8h.html#ab9b7fb95e1bd9b0da70befd0d37a9173">worksheet_set_row</a></div><div class="ttdeci">lxw_error worksheet_set_row(lxw_worksheet *worksheet, lxw_row_t row, double height, lxw_format *format)</div><div class="ttdoc">Set the properties for a row of cells.</div></div>
<div class="ttc" id="aworksheet_8h_html_a9656e4e05d3787eee6b3e4d8e82d9b7f"><div class="ttname"><a href="worksheet_8h.html#a9656e4e05d3787eee6b3e4d8e82d9b7f">worksheet_set_column</a></div><div class="ttdeci">lxw_error worksheet_set_column(lxw_worksheet *worksheet, lxw_col_t first_col, lxw_col_t last_col, double width, lxw_format *format)</div><div class="ttdoc">Set the properties for one or more columns of cells.</div></div>
<div class="ttc" id="astructlxw__comment__options_html_a89a37846d06f3d06efb1c7b6d7dd96e8"><div class="ttname"><a href="structlxw__comment__options.html#a89a37846d06f3d06efb1c7b6d7dd96e8">lxw_comment_options::color</a></div><div class="ttdeci">lxw_color_t color</div><div class="ttdef"><b>Definition:</b> worksheet.h:1399</div></div>
<div class="ttc" id="autility_8h_html_ad510ac6df573d23203374e24dba373d2"><div class="ttname"><a href="utility_8h.html#ad510ac6df573d23203374e24dba373d2">CELL</a></div><div class="ttdeci">#define CELL(cell)</div><div class="ttdoc">Convert an Excel A1 cell string into a (row, col) pair.</div><div class="ttdef"><b>Definition:</b> utility.h:45</div></div>
<div class="ttc" id="aworkbook_8h_html_a81d456b4f65a464e78e4a0030ecc3c2e"><div class="ttname"><a href="workbook_8h.html#a81d456b4f65a464e78e4a0030ecc3c2e">workbook_add_worksheet</a></div><div class="ttdeci">lxw_worksheet * workbook_add_worksheet(lxw_workbook *workbook, const char *sheetname)</div><div class="ttdoc">Add a new worksheet to a workbook.</div></div>
<div class="ttc" id="astructlxw__comment__options_html_abc75ab267fe81d828844e6a619c7edef"><div class="ttname"><a href="structlxw__comment__options.html#abc75ab267fe81d828844e6a619c7edef">lxw_comment_options::width</a></div><div class="ttdeci">uint16_t width</div><div class="ttdef"><b>Definition:</b> worksheet.h:1381</div></div>
<div class="ttc" id="aworksheet_8h_html_aad352c6cf9a5359d4cda51839a91c7d2a3d229e4bc94662b4ed744abd40182728"><div class="ttname"><a href="worksheet_8h.html#aad352c6cf9a5359d4cda51839a91c7d2a3d229e4bc94662b4ed744abd40182728">LXW_COMMENT_DISPLAY_HIDDEN</a></div><div class="ttdeci">@ LXW_COMMENT_DISPLAY_HIDDEN</div><div class="ttdef"><b>Definition:</b> worksheet.h:214</div></div>
<div class="ttc" id="aworksheet_8h_html_abd1728d105365c0113e15f40c6bb1b27"><div class="ttname"><a href="worksheet_8h.html#abd1728d105365c0113e15f40c6bb1b27">worksheet_write_comment</a></div><div class="ttdeci">lxw_error worksheet_write_comment(lxw_worksheet *worksheet, lxw_row_t row, lxw_col_t col, const char *string)</div><div class="ttdoc">Write a comment to a worksheet cell.</div></div>
<div class="ttc" id="aworkbook_8h_html_a279a5d7075d09a3931aae9782afede33"><div class="ttname"><a href="workbook_8h.html#a279a5d7075d09a3931aae9782afede33">workbook_add_format</a></div><div class="ttdeci">lxw_format * workbook_add_format(lxw_workbook *workbook)</div><div class="ttdoc">Create a new Format object to formats cells in worksheets.</div></div>
<!-- HTML footer for doxygen 1.8.20-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Copyright 2014-2020 John McNamara.
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
